const TOKEN_KEY = 'geek-login-tiken';

// 获取token
export const getToken = () => localStorage.getItem(TOKEN_KEY);

// 设置token
export const setToken = value => localStorage.setItem(TOKEN_KEY, value);

// 清除token
export const clearToken = () => localStorage.removeItem(TOKEN_KEY);

// 根据token是否有值判断是否登陆
export const isAuth = () => !!getToken();
